home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / text / hyper / ADtoHT2_0.lha / MyLib.lha / include / Amiga.h next >
Encoding:
C/C++ Source or Header  |  1995-03-14  |  1.2 KB  |  59 lines

  1. /* $VER: Amiga.h 1.0 (02.03.95) */
  2.  
  3. #ifndef _AMIGA_H_
  4. #define _AMIGA_H_
  5.  
  6. #ifndef WORKBENCH_STARTUP_H
  7. struct WBStartup;
  8. #endif
  9.  
  10. #ifndef DOS_DOSEXTENS_H
  11. struct DosLibrary;
  12. #endif
  13.  
  14. #ifndef EXEC_EXECBASE_H
  15. struct ExecBase;
  16. #endif
  17.  
  18. #ifndef EXEC_LIBRARIES_H
  19. struct Library;
  20. #endif
  21.  
  22. extern struct WBStartup *WorkbenchMessage;
  23. extern struct DosLibrary *DOSBase;
  24. extern struct ExecBase *SysBase;
  25. extern struct Library *UtilityBase;
  26.  
  27. #if defined(__GNUC__)
  28. #  define __NORETURN __attribute__((noreturn))
  29. #  define __ALIGN(Variable) Variable __attribute__((aligned(4)))
  30. #  define COMPILER "GNU C " __VERSION__
  31. #  undef CPU
  32. #  if defined(mc68040)
  33. #    define CPU "mc68040"
  34. #  elif defined(mc68030)
  35. #    if defined(__HAVE_68881__)
  36. #      define CPU "mc68ec030/mc68881"
  37. #    else
  38. #      define CPU "mc68ec030"
  39. #    endif
  40. #  elif defined(mc68020)
  41. #    if defined(__HAVE_68881__)
  42. #      define CPU "mc68020/mc68881"
  43. #    else
  44. #      define CPU "mc68020"
  45. #    endif
  46. #  else
  47. #    define CPU "mc68000"
  48. #  endif
  49. #elif defined(__SASC_510)
  50. #  define __NORETURN
  51. #  define __ALIGN(Variable) __aligned Variable
  52. #  define COMPILER "SAS/C 5.10b"
  53. #  define CPU "mc68000"
  54. #else
  55. #  error Compiler not supported.
  56. #endif
  57.  
  58. #endif  /* _AMIGA_H_ */
  59.